<?php
/**
 * Created by PhpStorm.
 * User: ybjaa
 * Date: 2017/6/19
 * Time: 10:01
 */

namespace database\model;


use Illuminate\Database\Schema\Blueprint;

class menus_manage extends base
{
    public $table="menus_manage";


    protected function setFileds(Blueprint $table)
    {
        parent::setFileds($table);

        $table->integer('parentID',false,true)->comment("父菜单的ID默认为顶层菜单的Parent为0");
        $table->string('menuName', 1000)->comment("菜单要显示的名称");
        $table->string('menuURL', 255)->nullable()->comment("菜单的连接地址");
        $table->integer('nextID',false,true)->nullable()->comment("链表的下一条ID");
        $table->boolean('isDelete')->default(1)->comment("是否可以删除");
        $table->boolean('isWrite')->default(1)->comment("是否可以修改");
    }
}